<?php
/**
 * class FeedView
 *  
 */
class FeedView {
    public static function getTableWithNews($data) {
        $out = '';
        $out.='<div class="span6">
            <h4>Лента новостей</h4>
<table class="table">';
        if(!empty($data))
        foreach ($data as $value) {
            $out.='<tr><td width="150px">'.$value['date'].'</td><td>'.$value['subject'].'</td></tr>';
        }
        else
            $out.='<tr><td>Пусто</td></tr>';
        
        $out.='</table></div>';
        return $out;
    }
}

?>